package com.benlai.newretail.jobhandler;

import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.IJobHandler;
import com.xxl.job.core.handler.annotation.JobHander;
import com.xxl.job.core.log.XxlJobLogger;
import org.springframework.stereotype.Service;

/**
 * @author:gaoxu;
 * @Email:gaoxu@benlai.com
 * @DATE:2017-11-29
 * @version:ver1.0.0
 * @Description: Created by gaoxu on 2017-11-29.
 */

@JobHander(value = "simpleobHandler")
@Service
public class SimpleobHandler extends IJobHandler {

    @Override
    public ReturnT<String> execute(String... strings) throws Exception {
        XxlJobLogger.log("测试两个job一起!");
        return ReturnT.SUCCESS;
    }
}
